
package ch.hearc.coursJava.kitBase.list;

import static org.junit.Assert.assertTrue;

import java.util.Arrays;
import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import ch.hearc.coursJava.kitBase.tools.ContainerTools;

public class UseListTest
	{

	/*------------------------------------------------------------------*\
	 |*							Constructeurs							*|
	 \*------------------------------------------------------------------*/

	@Before
	public void before()
		{
		// rien
		}

	@After
	public void after()
		{
		// rien
		}

	/*------------------------------------------------------------------*\
	 |*							Methodes Public							*|
	 \*-----------------------------------------------------------------*/

	@Test
	public void testAddListSameSize()
		{
		List<Integer> liste1 = Arrays.asList(10, 20, 30);
		List<Integer> liste2 = Arrays.asList(1, 2, 3);
		List<Integer> listeResultatTheorique = Arrays.asList(11, 22, 33);
		List<Integer> listeResultatExperimental = UseList.add(liste1, liste2);

		assertTrue(ContainerTools.isEgal(listeResultatTheorique, listeResultatExperimental));
		}
	}
